package com.cheetah.start.common.runner;

import com.cheetah.start.system.common.service.CommonService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.ApplicationArguments;
import org.springframework.boot.ApplicationRunner;
import org.springframework.core.annotation.Order;
import org.springframework.stereotype.Component;

/**
 * @author Feel
 * @date 2021/11/10 19:25
 * @Description:
 */
@Component
@Order(value = 1)
public class StartRunner implements ApplicationRunner {
    @Autowired
    private CommonService commonService;

    @Override
    public void run(ApplicationArguments args) throws Exception {
        commonService.showYml();
    }
}
